package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 sh_user
 *
 * @author ruoyi
 * @date 2020-11-30
 */

public class ShUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String loginName;

    /** 登录密码 */
    private String passWord;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 昵称 */
    @Excel(name = "昵称")
    private String userName;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userPhoto;

    /** 生日 */
    @Excel(name = "生日")
    private String birthday;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** vip状态（0 未交费 1 已缴费） */
    @Excel(name = "vip状态", readConverterExp = "0=,未=交费,1=,已=缴费")
    private String vipState;

    /** 实名状态（0 未实名  1 已实名） */
    @Excel(name = "实名状态", readConverterExp = "0=,未=实名,1=,已=实名")
    private String checkState;

    /** 邀请码 */
    @Excel(name = "邀请码")
    private String invitCode;

    /** 上级邀请码 */
    @Excel(name = "上级邀请码")
    private String superiorCode;

    /** md5密码盐 */
    private String salt;

    /** 用户状态(1-正常,2-冻结) */
    @Excel(name = "用户状态(1-正常,2-冻结)")
    private String status;

    /** 删除状态(0-正常,1-已删除) */
    private String delFlag;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    private String loName;

    public String getLoName() {
        return loName;
    }

    public void setLoName(String loName) {
        this.loName = loName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setPassWord(String passWord)
    {
        this.passWord = passWord;
    }

    public String getPassWord()
    {
        return passWord;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getRealName()
    {
        return realName;
    }
    public void setUserPhoto(String userPhoto)
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto()
    {
        return userPhoto;
    }
    public void setBirthday(String birthday)
    {
        this.birthday = birthday;
    }

    public String getBirthday()
    {
        return birthday;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setVipState(String vipState)
    {
        this.vipState = vipState;
    }

    public String getVipState()
    {
        return vipState;
    }
    public void setCheckState(String checkState)
    {
        this.checkState = checkState;
    }

    public String getCheckState()
    {
        return checkState;
    }
    public void setInvitCode(String invitCode)
    {
        this.invitCode = invitCode;
    }

    public String getInvitCode()
    {
        return invitCode;
    }
    public void setSuperiorCode(String superiorCode)
    {
        this.superiorCode = superiorCode;
    }

    public String getSuperiorCode()
    {
        return superiorCode;
    }
    public void setSalt(String salt)
    {
        this.salt = salt;
    }

    public String getSalt()
    {
        return salt;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loginName", getLoginName())
            .append("passWord", getPassWord())
            .append("mobile", getMobile())
            .append("userName", getUserName())
            .append("realName", getRealName())
            .append("userPhoto", getUserPhoto())
            .append("birthday", getBirthday())
            .append("sex", getSex())
            .append("vipState", getVipState())
            .append("checkState", getCheckState())
            .append("invitCode", getInvitCode())
            .append("superiorCode", getSuperiorCode())
            .append("salt", getSalt())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
